package zhuang;

import java.util.Arrays;

public class sequence {

	public static void main(String[] args) {
		int[] a ={8,4,2,1,23,344,12};
		int y=0;
		int[]b=new int[7];
		for(int x=a.length-1;x>=0;x--){
			
			b[b.length-1-x]=a[x];
			
		}
		System.out.println(Arrays.toString(b));
		int i ;
		for(i=0;i<a.length/2;i++){
			int temp;
			temp = a[i];
			a[i] = a[a.length-i-1];
			a[a.length-i-1]=temp;
		}
		System.out.print(Arrays.toString(a));
	}

}
